home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / python2.5-minimal.prerm < prev    next >
Encoding:
Text File  |  2007-05-02  |  818 b   |  36 lines

  1. #! /bin/sh -e
  2.  
  3. case "$1" in
  4.     remove)
  5.     if [ "$DEBIAN_FRONTEND" != noninteractive ]; then
  6.         echo "Unlinking and removing bytecode for runtime python2.5"
  7.     fi
  8.     for hook in /usr/share/python/runtime.d/*.rtremove; do
  9.         [ -x $hook ] || continue
  10.         $hook rtremove python2.5 || continue
  11.     done
  12.     dpkg -L python2.5-minimal \
  13.         | awk '/\.py$/ {print $0"c\n" $0"o"}' \
  14.         | xargs rm -f >&2
  15.         ;;
  16.     upgrade)
  17.         dpkg -L python2.5-minimal \
  18.         | awk '/\.py$/ {print $0"c\n" $0"o"}' \
  19.         | xargs rm -f >&2
  20.         ;;
  21.     deconfigure)
  22.         ;;
  23.     failed-upgrade)
  24.         ;;
  25.     *)
  26.         echo "prerm called with unknown argument \`$1'" >&2
  27.         exit 1
  28.     ;;
  29. esac
  30.  
  31. rmdir /usr/local/lib/python2.5/site-packages 2>/dev/null && \
  32.         rmdir /usr/local/lib/python2.5 2>/dev/null || \
  33.         true
  34.  
  35.  
  36.